package com.spzx.system.controller;

import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.domain.AjaxResult;
import com.spzx.common.log.annotation.Log;
import com.spzx.common.log.enums.BusinessType;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "测试记录操作日志")
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {

    @Operation(summary = "测试记录操作日志")
    @Log(title = "测试标题", businessType = BusinessType.TEST)
    @GetMapping
    public AjaxResult test() {
        System.out.println("********** TestController logger **********");
        return success();
    }
}